Zero-heat-flux thermometry